<?php include incTemplate('header');?>
<script>
function updatepwd(){
	var newpass = $("#newpass").val();
	if(newpass == "" || typeof(newpass) == undefined){
		$.messager.alert('提示','新密码不能为空！');
		return;
	}
	document.form1.submit();
}
</script>
</head>
<body class="body">
<form action="/admin.php/admin/updatepwddo" method="post" name="form1">
<input type="hidden" name="id" value="<?php echo $_SESSION['adminuser']['id'];?>" />
<table class="tab_form" >
	<tr>
		<td class="edit_td" width="80px">用户名：</td><td class="rig_td">
		<?php echo $_SESSION['adminuser']['loginname'];?>
		</td>
	</tr>
	<tr>
		<td class="edit_td">密码：</td><td class="rig_td">
		<input type="password" name="newpass" id="newpass" class="w_200" />
		</td>
	</tr>
	<tr>
		<td></td>
		<td><input id="btn_login" type="button" onclick="updatepwd()" value="修改密码"/></td>
	</tr>
</table>
</form>
</body>
</html>